package com.tom.architect.day17.simple4;

import androidx.annotation.NonNull;

public class User implements Cloneable {
    public String userName;
    public int age;
    public Address userAddress;

    @NonNull
    @Override
    protected User clone() throws CloneNotSupportedException {
        return (User) super.clone();
    }

    public static class Address {
        public Address(String addressName, String city) {
            this.addressName = addressName;
            this.city = city;
        }
        public String addressName;
        public String city;
    }
}
